using System.IO;

namespace ShuttleBus
{
    public class StreamWrapper : IStream
    {
        private readonly Stream _stream;

        public StreamWrapper(Stream stream)
        {
            _stream = stream;
        }

        public Stream BaseStream { get { return _stream; } }

        public long Position { get { return _stream.Position; } set { _stream.Position = value; } }

        public void Dispose()
        {
            _stream.Dispose();
        }

        public void Write(byte[] buffer, int offset, int count)
        {
            _stream.Write(buffer, offset, count);
        }
    }
}